package org.beian.fmmall.dao;

import org.apache.ibatis.annotations.Param;
import org.beian.fmmall.beans.ShoppingCart;
import org.beian.fmmall.beans.ShoppingCartVO;
import org.beian.fmmall.general.GeneralDAO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingCartMapper extends GeneralDAO<ShoppingCart> {
    public List<ShoppingCartVO> selectShopCartByUserId(int userId);

    public int updataCartNumByCartId(@Param("cartId") int cartId,
                                     @Param("cartNum") int cartNum);

    public List<ShoppingCartVO> selectShopCartByCids(List<Integer> cids);
}